from sqlalchemy import (
    Column,
    Index,
    Integer,
    Text,
    Unicode,
    ForeignKey,
    Table,
    Float,
    DateTime
)

from sqlalchemy.orm import relationship

from .meta import Base

class ItemImage(Base):
    __tablename__ = 'images'
    id = Column(Integer, primary_key=True)
    path=Column(Unicode(100))
    item_id=Column(Integer,ForeignKey('items.id'))
    item=relationship('Item',backref='images')